﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using padnug.Domain;
using PadnugRepository;
namespace PadnugService
{

    public class PadnugCalendarService : IPadnugCalendarService
    {
        private PadnugCalendarRepository repository;

        public PadnugCalendarService()
        {
            repository = new PadnugCalendarRepository();
        }

        #region IPadnugCalendarService Members

        public IList<CalendarEvent> GetMonthsEvents(DateTime dateTime)
        {
            return repository.GetMonthsEvents(dateTime);
        }

        public IList<CalendarEvent> GetAllEvents()
        {
            return repository.GetAllEvents();
        }

        public IList<DateTime> GetAllEventDates()
        {
            return repository.GetAllEventDates();
        }


        public object GetEventsForADate(DateTime eventDate)
        {
            throw new NotImplementedException();
        }

        #endregion

    }

    public interface IPadnugCalendarService
    {
        IList<CalendarEvent> GetMonthsEvents(DateTime dateTime);
        IList<CalendarEvent> GetAllEvents();
        IList<DateTime> GetAllEventDates();
        object GetEventsForADate(DateTime eventDate);
    }
}
